-
-
Notifications
You must be signed in to change notification settings - Fork 377
Fix MATLAB interface samples #1911
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Fixed a typo in Interface.concentrations
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1911 +/- ##
==========================================
- Coverage 74.11% 74.11% -0.01%
==========================================
Files 445 445
Lines 55454 55453 -1
Branches 9121 9121
==========================================
- Hits 41101 41098 -3
- Misses 11262 11263 +1
- Partials 3091 3092 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Changed refine criteria for Diff_flame
for axis for periodic_cstr.m sample
9a6a562
to
f8ebb67
Compare
Modified several samples to include this change
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ssun30 ... thanks for addressing!
Out of curiosity: for the Python API, all examples are tested as part of a CI job, see run-examples
in .github/workflows/main.yml
.
The relevant code is:
- name: Run the examples
# See https://unix.stackexchange.com/a/392973 for an explanation of the -exec part.
run: |
ln -s libcantera_shared.so build/lib/libcantera_shared.so.3
export LD_LIBRARY_PATH=build/lib
find samples/python -type f -iname "*.py" \
-exec sh -c 'for n; do echo "$n" | tee -a results.txt && python3 "$n" >> results.txt || exit 1; done' sh {} +
I believe it's possible to do something similar here as it's possible to run MATLAB scripts from the command line:
matlab -r "try, run('rankine.m'), catch, exit(1), end, exit(0)"
where I had set matlab
to
alias matlab="/Applications/MATLAB_R2023b.app/bin/matlab -nojvm -nodesktop"
on macOS (fwiw, I just ran a quick test so the options may not be the greatest selection)
include correct units
There are numerous changes to class structures to the MATLAB interface that necessitate modifications to our current collection of MATLAB samples.
Changes proposed in this pull request
If applicable, fill in the issue number this pull request is fixing
Closes #1722
Checklist
scons build
&scons test
) and unit tests address code coverage